﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align: center">
        <strong>用户注册<br />
            <table border="1" style="text-align: left">
                <tr>
                    <td style="width: 91px">
                        用户名</td>
                    <td colspan="2" style="width: 255px">
                        <asp:TextBox ID="txtUsername" runat="server"></asp:TextBox></td>
                    <td align="left" colspan="1" style="width: 255px">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUsername"
                            ErrorMessage="RequiredFieldValidator">"必须输入用户名"</asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td style="width: 91px; height: 38px">
                        密码</td>
                    <td colspan="2" style="width: 255px; height: 38px">
                        <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox></td>
                    <td align="left" colspan="1" style="width: 255px; height: 38px">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword"
                            ErrorMessage="RequiredFieldValidator">"密码不能为空！"</asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td style="width: 91px">
                        确认密码</td>
                    <td colspan="2" style="width: 255px">
                        <asp:TextBox ID="txtRepassword" runat="server" TextMode="Password"></asp:TextBox></td>
                    <td align="left" colspan="1" style="width: 255px">
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPassword"
                            ControlToValidate="txtRepassword" ErrorMessage="CompareValidator">"两次输入的密码不同！"</asp:CompareValidator></td>
                </tr>
                <tr>
                    <td style="width: 91px">
                        出生日期</td>
                    <td colspan="2" style="width: 255px">
                        <asp:TextBox ID="txtBirthday" runat="server"></asp:TextBox><br />
                    </td>
                    <td align="left" colspan="1" style="width: 255px">
                        <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="txtBirthday"
                            ErrorMessage="CompareValidator" Operator="DataTypeCheck" Type="Date">"日期格式应为：2008-1-12"</asp:CompareValidator></td>
                </tr>
                <tr>
                    <td style="width: 91px">
                    </td>
                    <td colspan="2" style="width: 255px">
                        <asp:Button ID="btnOK" runat="server" OnClick="btnOK_Click" Text="注册" /></td>
                    <td colspan="1" style="width: 255px">
                    </td>
                </tr>
            </table>
            <br />
            <asp:Label ID="lblPass" runat="server" Height="141px"></asp:Label></strong></div>
    </form>
</body>
</html>
